package com.hhk.project_01.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//把这个类交给spring容器进行管理
@Component
@ConfigurationProperties(prefix = "school")
public class GetConfigData {
     //这个类用于映射application.properties里面的scholl属性，首先把这个类交给spring容器管理,这样就可以把application.properties的school属性映射到这里来

    public String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    public String website;

}
